package org.roy.uibase.component;

import org.roy.uibase.field.Screen;
import org.roy.uibase.layout.BoxLayout;

public class MainScreen extends Screen{
    BoxLayout iLayout;
    public MainScreen(){
        iLayout = new BoxLayout(this, BoxLayout.LAYOUT_VERTICAL);
        iLayout.setSpace(10);
        this.setLayout(iLayout);
        
        Button sButton1 = new Button("Button1");
        sButton1.resize(80, 30);
        
        Button sButton2 = new Button("Button2");
        sButton2.resize(80, 30);
        
        iLayout.addField(sButton1);
        iLayout.addField(sButton2);
    }
}
